<template>
    <div>


        <el-row :gutter="12">
            <el-col :span="8">
                <el-card shadow="always">
                    <div>学校数量</div>
                    <div>{{info.school_total}}</div>
                </el-card>
            </el-col>
            <el-col :span="8">
                <el-card shadow="always">
                    <div>用户数量</div>
                    <div>{{info.user_total}}</div>
                </el-card>
            </el-col>
            <el-col :span="8">
                <el-card shadow="always">
                    <div>今日新增用户</div>
                    <div>{{info.day_user_total}}</div>
                </el-card>
            </el-col>
        </el-row>

    </div>

</template>

<script>
    import {
        getSchoolTotal
    } from '@/api/index/index';

    let _self;
    export default {

        components: {},
        data() {
            return {
                info:''
            };
        },

        created() {
            _self = this;
            _self.init();

        },


        methods: {
            init: function () {
                let param = {

                }
                getSchoolTotal(param).then((res) => {
                    console.log(res);
                    if (res.code == 200) {
                        _self.info = res.data;
                    }
                })
            }
        }

    };
</script>

<style lang="scss">
    .el-card__body {
        display: flex;
        justify-content: space-around
    }
</style>
